package com.boylegu.springboot_vue.dao;

import com.boylegu.springboot_vue.entities.Students;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface StudentsRepository extends MongoRepository<Students, String> {

    public Students findById(String id);
    public Page<Students> findAll(Pageable page);
}
